home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / ms-0.07 / xms / noImakefile < prev    next >
Encoding:
Makefile  |  1995-06-27  |  1.6 KB  |  60 lines

  1. # noImakefile
  2. # This is a simple makefile provided for the convenience of those 
  3. # unfortunate users who don't have Imake.  If at all possible, use 
  4. # Imakefile instead.
  5.  
  6. # This makefile is for X11R4 or newer.  It assumes you have the 
  7. # Andrew widget library (Xaw).
  8. #
  9. # Users of pre-X11R4 systems and systems that lack the 
  10. # Xaw library should remove -lXaw -lXmu, and -lXext from XLIBS,
  11. # the "menu" and "label" modules from SRCS and OBJS, and
  12. # all the R4_DEFINES below.
  13.  
  14. R4_DEFINES = -DR4 -DMENU -DLABEL
  15.  
  16. # Name of program to make
  17. TARGET=xms
  18.  
  19. CC=cc
  20. LD=$(CC)
  21.  
  22. CFLAGS= -O -I../lib
  23. LDFLAGS=
  24.  
  25. XLIBS= -lXaw -lXmu -lXt -lXext -lX11
  26.  
  27. SRCS= Ms.c main.c Mama.c menu.c label.c xio.c
  28. OBJS= Ms.o main.o Mama.o menu.o label.o xio.o
  29.  
  30. MSLIB= ../lib/libms.a
  31.  
  32. $(TARGET): $(OBJS) $(MSLIB)
  33.     $(LD) $(LDFLAGS) $(OBJS) $(MSLIB) $(XLIBS) -lm -o $(TARGET)
  34.  
  35. Mama.o: Mama.c Mama.h MamaP.h Ms.h backward.h ../lib/ms_real.h ../lib/ms_ipc.h ../lib/work.h ../lib/io.h
  36.     $(CC) $(CFLAGS) $(R4_DEFINES) Mama.c -c
  37.  
  38. Ms.o: Ms.c Ms.h MsP.h Mama.h ../lib/ms_job.h backward.h ../lib/mspawn.h ../lib/ms_real.h ../lib/datarep.h
  39.     $(CC) $(CFLAGS) $(R4_DEFINES) Ms.c -c
  40.  
  41.  
  42. xio.o: xio.c
  43.     $(CC) $(CFLAGS) $(R4_DEFINES) xio.c -c
  44.  
  45. main.o: main.c Mama.h Ms.h backward.h ../lib/version.h
  46.     $(CC) $(CFLAGS) $(R4_DEFINES) main.c -c
  47.  
  48. menu.o: menu.c Ms.h MsP.h Mama.h ../lib/datarep.h ../lib/mspawn.h ../lib/ms_job.h ../lib/ms_real.h
  49.     $(CC) $(CFLAGS) $(R4_DEFINES) menu.c -c
  50.  
  51. label.o: label.c Ms.h MsP.h Mama.h ../lib/datarep.h ../lib/mspawn.h ../lib/ms_job.h ../lib/ms_real.h
  52.     $(CC) $(CFLAGS) $(R4_DEFINES) label.c -c
  53.  
  54. clean: 
  55.     rm -f $(OBJS) core *~
  56.  
  57. spotless: clean
  58.     rm -f $(TARGET) Makefile.bak
  59.